import { request } from '@/utils/request.js'

// 获取我的优惠券列表
export function apiGetCouponList(data = {}) {
	return request({
		url: "/productCouponRecord/couponList",
		data,
	})
}

// 获取领券中心列表
export function apiGetReceiveCouponList(data = {}) {
	return request({
		// url: "/productCoupon/couponList",
		url: "/userProductCoupon/list",
		data,
	})
}

// 领取优惠券
export function receiveCoupon(data = {}) {
	return request({
		// url: "/productCoupon/receive",
		url: "/userProductCoupon/receive",
		data,
		method: "post",
	})
}




